<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class GoEz_Router</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class GoEz_Router</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">一般 Router</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright (c) 2008-2012 Wabow Information Inc. (http://www.wabow.com)</li>
				<li><span class="field">license:</span> New</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Router.php.html">/Router.php</a> (line <span class="field">18</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../GoEz/GoEz_Router_Cli.html">GoEz_Router_Cli</a></td>
					<td>
											CLI Router
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../GoEz/GoEz_Router_Rewrite.html">GoEz_Router_Rewrite</a></td>
					<td>
											網址重寫 Router 類別
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$_action" title="details" class="var-name">$_action</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$_controller" title="details" class="var-name">$_controller</a>
				</div>
																<div class="var-title">
					<span class="var-type"><a href="../GoEz/GoEz_Request.html">GoEz_Request</a></span>
					<a href="#$_request" title="details" class="var-name">$_request</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																												
												<div class="method-definition">
											<span class="method-result">GoEz_Router</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type"><a href="../GoEz/GoEz_Request.html">GoEz_Request</a></span>&nbsp;<span class="var-name">$request</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getAction" title="details" class="method-name">getAction</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getController" title="details" class="method-name">getController</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_checkName" title="details" class="method-name">_checkName</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_parseUrl" title="details" class="method-name">_parseUrl</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$_action" id="$_action"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$_action</span>
			 = <span class="var-default"> 'index'</span>			(line <span class="line-number">32</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">預設的動作</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_controller" id="$_controller"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$_controller</span>
			 = <span class="var-default"> 'index'</span>			(line <span class="line-number">25</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">預設的 Controller</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_request" id="$_request"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type"><a href="../GoEz/GoEz_Request.html">GoEz_Request</a></span>
			<span class="var-name">$_request</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">39</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Request 物件</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">46</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">在建構函式中解析 GET 變數</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">GoEz_Router</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type"><a href="../GoEz/GoEz_Request.html">GoEz_Request</a></span>&nbsp;<span class="var-name">$request</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../GoEz/GoEz_Request.html">GoEz_Request</a></span>
				<span class="var-name">$request</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAction" id="getAction"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAction</span> (line <span class="line-number">111</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得解析後的 Action 名稱</p>
	<ul class="tags">
				<li><span class="field">return:</span> 回傳解析後的 action</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getAction
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetController" id="getController"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getController</span> (line <span class="line-number">101</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得解析後的 Controller 名稱</p>
	<ul class="tags">
				<li><span class="field">return:</span> 回傳解析後的 controller</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getController
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method_checkName" id="_checkName"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_checkName</span> (line <span class="line-number">73</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">檢查 Controller 及 Action 名稱</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_checkName
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method_parseUrl" id="_parseUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_parseUrl</span> (line <span class="line-number">63</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">解析網址</p>
<p class="description"><p>主要用來取得目前網址上的 controller 和 action 。</p><p>使用者可以覆寫這個方法，用自己的方式取得 controller 和 action</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_parseUrl
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../GoEz/GoEz_Router_Cli.html#method_parseUrl">GoEz_Router_Cli::_parseUrl()</a>
								: 解析參數
							</li>
					<li>
				<a href="../GoEz/GoEz_Router_Rewrite.html#method_parseUrl">GoEz_Router_Rewrite::_parseUrl()</a>
								: 解析網址
							</li>
				</ul>
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 04 Jan 2010 10:48:55 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>